import Myrequest from '@/common/Myrequest.js'

export const getuserpage = (data)=>{
	return Myrequest({
		URL:'/user/getUserPage',
		Method:'get',
		Data:data
	})
}
// 朋友
export const eachOther = (data)=>{
	return Myrequest({
		URL:'/follow/eachOther',
		Method:'get',
		Data:data
	})
}
//粉丝
export const followers = (data)=>{
	return Myrequest({
		URL:'/follow/followers',
		Method:'get',
		Data:data
	})
}
// 关注
export const concern = (data) =>{
	return Myrequest({
		URL:'/follow/concern',
		Method:'get',
		Data:data
	})
}

//获取用户空间
export const getUserSpace = (data) =>{
	return Myrequest({
		URL:'/user/getUserSpace',
		Method:'get',
		Data:data
	})
}
//更改或者忘记密码
export const updateOrForgetPassword = (data) =>{
	return Myrequest({
		URL:'/user/updatePass',
		Method:'post',
		Data:data
	})
}

export const updateUserInfo = (data) =>{
	return Myrequest({
		URL:'/user/updateUserInfo',
		Method:'post',
		Data:data
	})
}

export const getUserInfoByUserId = (data) =>{
	return Myrequest({
		URL:'/user/getUserInfoByUserId',
		Method:'get',
		Data:data
	})
}